PCA Index Dashboard Examples

PCA Index Dashboard Examples#

This script was last run at 2024-04-15 10:17:58.300289+00:00 (UTC)
In US/Central Time, this is 2024-04-15 05:17:58.300289-05:00
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np

# Generating a random time series data
dates = pd.date_range(start="2021-01-01", end="2021-12-31", freq='D')
data = np.random.randn(len(dates)).cumsum()

# Creating the plot
plt.figure(figsize=(10, 6))
plt.plot(dates, data, label='Random Time Series', color='blue')
plt.title('Random Time Series Plot')
plt.xlabel('Date')
plt.ylabel('Value')
plt.legend()
plt.grid(True)
plt.xticks(rotation=45)
plt.tight_layout()

# Display the plot
plt.show()
print('We are just generating a random time serie here.')
../../_images/91e1062b8c0963d10b37fd913bf47ec395133e471301f2aeb285dddf0c5c286f.png
We are just generating a random time serie here.
../../_images/d34200e4dd730adc228c896b21a3f952af0c02b2120dd4dd79fb0da8b545d1b3.png
../../_images/e4542935afff5f0c9a2c527d5bc7cb04c4089631c2467640eb6977323ec93a42.png